<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2019/3/12
 * Time: 17:27
 */

namespace app\Home\controller;


use app\Home\model\Article;
use core\Controller;

class Home extends Controller
{
    public function index()
    {
        $arr = ['key'=>'11111','title'=>'my blog'];
        $art = new Article();
        $article = $art -> where([
            ['title|content','like','%一%']
            ,['user_id','=',1]
        ])->where([
            ['id','in',[1,2,3,4]]
        ])->find();
        $this->assign('abc',$article);
        $this->display('index.html');
    }
}

#